package com.zhanglu.fun.services.datacenter.role;

import com.zhanglu.fun.services.datacenter.entity.ApplicationRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description
 * @Auther zhanglu
 * @Date 2017/9/21 下午1:49
 */
@Service
public class ApplicationRoleService {
    @Autowired
    private ApplicationRoleMapper applicationRoleMapper;

    public List<ApplicationRole> getApplicationRolesByUserId(Long userId) {
        return applicationRoleMapper.select(new ApplicationRole().setUserId(userId));
    }
}
